/**
 * Copyright (c) 2016-2019 九点科技 All rights reserved.
 *
 * http://www.9dyun.cn
 *
 * 版权所有，侵权必究！
 */
package com.dian.modules.pos.entity;

import com.dian.common.validator.group.AddGroup;
import com.dian.common.validator.group.UpdateGroup;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.math.BigDecimal;
import com.dian.common.entity.BaseEntity;
import java.util.Date;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import org.hibernate.validator.constraints.Length;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
 * 采购订单明细
 *
 * @author xiaolai
 * @email xiaolai@9dyun.cn
 * @date 2019-07-02 10:56:45
 */
@Data
@TableName("pos_purchase_line")
public class PurchaseLineEntity extends BaseEntity {
    private static final long serialVersionUID = 1L;

        /**
        * 采购单id
        */
        private Long purchaseId;



        /**
        * 商品id;来源于base_goods.id
        */
        @NotNull(message="商品id不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private Long goodsId;



        /**
        * 商品编码;来源于base_goods.goods_code
        */
        @NotBlank(message="商品编码不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="商品编码长度不能超过40个字符")
        private String goodsCode;



        /**
        * 商品名称;来源于base_goods.name
        */
        @NotBlank(message="商品名称不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=200,  groups ={AddGroup.class, UpdateGroup.class}, message="商品名称长度不能超过200个字符")
        private String goodsName;



        /**
        * 商品型号;来源于base_goods.goods_model
        */
        @NotBlank(message="商品型号不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=100,  groups ={AddGroup.class, UpdateGroup.class}, message="商品型号长度不能超过100个字符")
        private String goodsModel;



        /**
        * 商品规格;来源于base_goods.goods_space
        */
        @NotBlank(message="商品规格不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=100,  groups ={AddGroup.class, UpdateGroup.class}, message="商品规格长度不能超过100个字符")
        private String goodsSpec;



        /**
        * 基础数量
        */
        @NotNull(message="基础数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private BigDecimal baseNum;



        /**
        * 基础单位id;来源于base_uom.id
        */
        @NotNull(message="基础单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private Long baseUomId;



        /**
        * 基础单位;来源于base_uom.name_name
        */
        @NotBlank(message="基础单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="基础单位长度不能超过40个字符")
        private String baseUomName;



        /**
        * 库存数量
        */
        @NotNull(message="库存数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private BigDecimal qtyNum;



        /**
        * 计量单位id;来源于base_uom.id
        */
        @NotNull(message="计量单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private Long qtyUomId;



        /**
        * 计量单位;来源于base_uom.name_name
        */
        @NotBlank(message="计量单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="计量单位长度不能超过40个字符")
        private String qtyUomName;



        /**
        * 辅助数量
        */
        @NotNull(message="辅助数量不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private BigDecimal auxNum;



        /**
        * 计量单位id;来源于base_uom.id
        */
        @NotNull(message="计量单位id不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private Long auxUomId;



        /**
        * 计量单位;来源于base_uom.name_name
        */
        @NotBlank(message="计量单位不能为空",  groups ={AddGroup.class, UpdateGroup.class})
        @Length(max=40,  groups ={AddGroup.class, UpdateGroup.class}, message="计量单位长度不能超过40个字符")
        private String auxUomName;



        /**
        * 商品单价
        */
        @NotNull(message="商品单价不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private BigDecimal goodsPrice;



        /**
        * 商品金额
        */
        @NotNull(message="商品金额不能为空",groups = {AddGroup.class,UpdateGroup.class})
        private BigDecimal goodsAmount;



        /**
        * 换算单位1
        */
        private BigDecimal converUnit1;



        /**
        * 换算单位2
        */
        private BigDecimal converUnit2;



        /**
        * 色号
        */
        @Length(max=20,  groups ={AddGroup.class, UpdateGroup.class}, message="色号长度不能超过20个字符")
        private String colorNumber;



        /**
        * 商品等级:1-优等品-excell;2-一等品-first
        */
        private Integer itemGrade;



        /**
        * 入库基础数量
        */
        private BigDecimal inBaseNum;



        /**
        * 入库辅助数量
        */
        private BigDecimal inQtyNum;



        /**
        * 入库库存数量
        */
        private BigDecimal inAuxNum;

        /**
         * 商品挂牌价
         */
        private BigDecimal goodsListPrice;

        /**
         * 商品折扣
         */
        private BigDecimal goodsDiscount;

    /**
     * 包装码
     */
    private String cfpackCode;
    /**
     * 缺陷
     */
    private  String fault;
    /**
     * 生产调度号schedule_no
     */
    private  String scheduleNo;
    /**
     * 批次flot
     */
    private  String flot;
    /**
     * 尺寸item_size
     */
    private  String itemSize;
    /**
     * 外包装码名称boxing_name
     */
    private  String boxingName;




}
